﻿using UnityEngine;
using System.Collections;

namespace common{
public class Common {

	public static string CodeString(string str){
		byte[] ActByte = System.Text.Encoding.UTF8.GetBytes(str);
		string temp = System.Convert.ToBase64String (ActByte);
		return temp;
	}

	public static string DeCodeString(string str){

		byte[] ActByte = System.Convert.FromBase64String (str);
		string temp = System.Text.Encoding.UTF8.GetString(ActByte);
		return temp;
	}
}
}
